import math

# 钱 100
# 公鸡 5 一只
# 母鸡 3 一只
# 小鸡 1 三只
money = 100
# 方案
count = 0
max_a = int(money / 5)
max_b = math.floor(money / 3)
for max_a in range(max_a + 1):
    for max_b in range(max_b + 1):
        max_c = (money - max_a - max_b)
        if money == max_a * 5 + max_b * 3 + max_c / 3:
            count = count + 1
            print("方案%d\t公鸡%d\t母鸡%d\t小鸡%d" % (count, max_a, max_b, max_c))
